package thread.homework.problem1method2;

public class PrintChar implements Runnable {
    private Print print;

    public PrintChar(Print print) {
        this.print = print;
    }

    @Override
    public void run() {
        for (char c = 'A'; c <= 'Z'; c++) {
            print.printChar(c);
        }
    }
}
